package com.VolunteerPlatform.Dao;

import com.VolunteerPlatform.Entity.AdminInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by DoveXL on 2018/12/3.
 */
@Repository
public interface AdminLoginDao {

    public AdminInfo getAdminLogin(@Param("UserName") String UserName, @Param("Password") String Password, @Param("UserStatus") String UserStatus);

    public int updateAdminInfo(@Param("UserName") String UserName,@Param("RealName") String RealName,@Param("Password") String Password,@Param("UserStatus") String UserStatus);

    public int insertAdminInfo(@Param("UserName") String UserName,@Param("RealName") String RealName,@Param("Password") String Password,@Param("UserStatus") String UserStatus);

    public AdminInfo findAdminByName(@Param("UserName") String UserName);

    public List<AdminInfo> getAllAdminInfo(@Param("UserName") String UserName, @Param("Password") String Password, @Param("UserStatus") String UserStatus,@Param("Page") int Page,@Param("PageList") int PageList);





}
